var express = require("express");
var router = express.Router();

/* GET home page. */
//   xx/
router.get("/", function (req, res, next) {
  //index 指定 渲染页面 使用的html模板 index.ejs
  res.render("index", {
    title: "首页-淘宝网",
    test: "<h1>aa</h1>",
    arr: [{ username: "zhangsan" }, { username: "lisi" }],
  });
  // res.send("hello");
});

module.exports = router;
